package com.itcast.service;

import com.itcast.dao.GoodsDao;
import com.itcast.domain.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsService {
    @Autowired
    private GoodsDao goodsDao;
    public Goods findById( int id){
        return goodsDao.findById(id);
    }
}
